using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Data.Linq;

namespace ibba.src.norisk.ServiceImplementation
{
    public class TranslateGarantidor
    {
        public static List<Contracts.Garantidor> Translate(List<BusinessEntities.Garantidor> pGarantidor)
        {
            return ((
                        from p in pGarantidor
                        select new Contracts.Garantidor()
                        {
                            CodGarantidor = p.CodGarantidor,
                            DscGarantidor = p.DscGarantidor,
                            NrCnpjCpf = p.NrCnpjCpf
                        }).ToList());
        }

        public static List<BusinessEntities.Garantidor> Translate(List<Contracts.Garantidor> pGarantidor)
        {
            return ((
                        from p in pGarantidor
                        select new BusinessEntities.Garantidor()
                        {
                            CodGarantidor = p.CodGarantidor,
                            DscGarantidor = p.DscGarantidor,
                            NrCnpjCpf = p.NrCnpjCpf
                        }).ToList());
        }
    }
}